package com.lovo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:db.properties")
@Data
public class DBProperties {
    @Value("${db.url}")
    private String url;
    @Value("${db.driver}")
    private String driver;
    @Value("${db.user}")
    private String user;
    @Value("${db.pwd}")
    private String pwd;
//    sql的映射包
    @Value("${type.aliases.package}")
    private String typeAliasesPackage;
}
